#
# HoI - Republican Spain Events
#
#		written by Henrik Fhraeus
#

#########################################################################
# Spanish Civil War
# MODIFIED
#########################################################################
event = { 
	id = 3100
	random = no
	country = SPR

	trigger = {
		NOT = {
			exists = SPA	
		}
		atwar = no
	}

	name = "EVT_3100_NAME"
	desc = "EVT_3100_DESC"
	style = 0

	date = { day = 17 month = july year = 1936 }

	action_a = {
		name = "OK"
		command = { type = civil_war which = SPA }
		command = { type = dissent value = 40 }
		command = { type = headofstate which = 11036 }  # Azaa
		command = { type = headofgovernment which = 11065 } # Largo Caballero
		command = { type = foreignminister which = 11067 } # Alvarez del Vayo
		command = { type = armamentminister which = 11072 } # Negrin
		command = { type = ministerofsecurity which = 11075 } # Galarza 
		command = { type = ministerofintelligence which = 11006 }  # Sarabia
		command = { type = chiefofstaff which = 11083 }  # Estrada 
		command = { type = chiefofarmy which = 11084 }  # Castell Pantoja
		command = { type = chiefofnavy which = 11087 } # Prieto
		command = { type = chiefofair which = 11093 } # Prieto
	}
}

#########################################################################
# Communist Coup - Anarchist movement crushed
# MODIFIED
#########################################################################
event = { 
	id = 3101
	random = no
	country = SPR

	name = "EVT_3101_NAME"
	desc = "EVT_3101_DESC"
	style = 0

	trigger = {
		random = 5
		event = 3102 # SOV supports SPR
		NOT = {
			government = communist
		}
		OR = {
			exists = SPA
			alignment = communist
		}
	}

	# Note: historical date: May 3, 1937
	date = { day = 3 month = april year = 1937 }
	offset = 7
	deathdate = { day = 3 month = june year = 1937 }

	action_a = {
		name = "OK"
		command = { type = alignment which = communist value = 75 }
		command = { type = headofstate which = 11062 } # Azaa
		command = { type = headofgovernment which = 11066 } # Negrn
		command = { type = foreignminister which = 11068 } # Giral
		command = { type = armamentminister which = 11072 } # Negrn
		command = { type = ministerofsecurity which = 11077 } # Zugazagoitia
		command = { type = ministerofintelligence which = 11056 } # Red Shadow
		command = { type = chiefofstaff which = 1182 } # Rojo
		command = { type = chiefofarmy which = 11058 } # Lster
		command = { type = chiefofnavy which = 11087 } # Prieto
		command = { type = chiefofair which = 11093 } # Prieto
	}
}

#########################################################################
#  Spanish Civil War - Soviet Intervention
#########################################################################
event = { 
	id = 3102
	random = no
	country = SPR
	
	# Triggered by SOV 2623
	
	name = "EVT_3102_NAME"
	desc = "EVT_3102_DESC"
	style = 0
	
	action_a = {
		name = "OK" # Great!
		command = { type = manpowerpool value = 10 }
		command = { type = supplies value = 2500 }
		command = { type = add_division which = armor }
#		command = { type = add_division which = infantry }
#		command = { type = province_keypoints which = -1 value = 1 }
#		command = { type = province_keypoints which = -1 value = 1 }
	}
}
#########################################################################
#  Spanish Civil War - UK Intervention
#########################################################################
event = { 
	id = 3103
	random = no
	country = SPR
	
	# Triggered by UK
	
	name = "EVT_3103_NAME"
	desc = "EVT_3103_DESC"
	style = 0
	
	action_a = {
		name = "OK" # Great!
		command = { type = manpowerpool value = 10 }
		command = { type = supplies value = 1500 }
		command = { type = add_division which = infantry }
#		command = { type = province_keypoints which = -1 value = 1 }
#		command = { type = province_keypoints which = -1 value = 1 }
	}
}
#########################################################################
#  Spanish Civil War - French Intervention
#########################################################################
event = { 
	id = 3104
	random = no
	country = SPR
	
	# Triggered by FRA
	
	name = "EVT_3104_NAME"
	desc = "EVT_3104_DESC"
	style = 0
	
	action_a = {
		name = "OK" # Great!
		command = { type = manpowerpool value = 10 }
		command = { type = supplies value = 1500 }
		command = { type = add_division which = infantry }
#		command = { type = province_keypoints which = -1 value = 1 }
#		command = { type = province_keypoints which = -1 value = 1 }
	}
}